# -*- coding: utf-8 -*-

# Django settings for shortsight project.

import os
DIRNAME = os.path.dirname(__file__)

DEBUG                   = True
TEMPLATE_DEBUG          = DEBUG

ADMINS                  = (
    ('Patrick Anderson', 'pat.j.anderson@gmail.com'),
)

MANAGERS                = ADMINS

DATABASE_ENGINE         = 'sqlite3'
DATABASE_NAME           = os.path.join(DIRNAME, 'storage.db')
DATABASE_USER           = ''
DATABASE_PASSWORD       = ''
DATABASE_HOST           = ''
DATABASE_PORT           = ''

TIME_ZONE               = 'America/Chicago'

LANGUAGE_CODE           = 'en'

LANGUAGES               = (
    ('en', 'English'),
    ('es', 'Español'),
    ('pt', 'Português'),
)

SITE_ID                 = 1

USE_I18N                = True

MEDIA_ROOT              = os.path.join(DIRNAME, 'media/')
MEDIA_URL               = '/media/'
ADMIN_MEDIA_PREFIX      = '/media/admin/'

SECRET_KEY              = 'l(swv9bo$n3e-9b$(glqkn7%2c$xpe=^(bop+(o!!&xgnscr7='

TEMPLATE_LOADERS        = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES      = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
    'django.middleware.gzip.GZipMiddleware',
    'shortsight.middleware.psyco.PsycoMiddleware',
    'shortsight.middleware.threadlocals.ThreadLocals',
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)

ROOT_URLCONF            = 'shortsight.urls'

TEMPLATE_DIRS           = (
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
    os.path.join(DIRNAME, 'templates')
)

INSTALLED_APPS          = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.comments',
    'django.contrib.humanize',
    'django.contrib.flatpages',
    'django.contrib.admin',
    
    'shortsight.apps.world',
    'shortsight.apps.companies',
)
